package com.oversea.util;

import java.util.ArrayList;
import java.util.List;

//public class Test {
public class Test<T> {

	private T t;
	
	public Test(T t){
		this.t = t;
	}
	
	public void showType(){
		System.out.println(this.getClass());
		System.out.println(t.getClass());
	}
	public void showValue(){
		System.out.println(t);
	}
	
	public static void main(String[] s){
		Test test = new Test(new String("ss"));
		test.showType();
		test.showValue();
		
		List<Integer> idList = new ArrayList();
		idList.add(1);
		idList.add(2);
		idList.add(3);
		System.out.println(idList.toString().replace("[", "(").replace("]", ")"));
		System.out.println(idList.toArray());
	}
}
